﻿using System;
using System.Windows.Controls;
using TheOliver.DigitalSignage.Client.Interfaces;

namespace CeBIT2010
{
    public partial class SpecialPromo : UserControl, IInteractiveSlide
    {
        public SpecialPromo()
        {
            InitializeComponent();

            _video.MediaEnded += (s, e) =>
            {
                if (Finished != null)
                {
                    Finished(this, EventArgs.Empty);
                }
            };
        }

        #region ISlide Members

        public event EventHandler Finished;

        public int DisplayDuration
        {
            get { return 0; }
        }

        public bool HasContent
        {
            get { return true; }
        }

        #endregion

        public void Start()
        {
            _video.Stop();
            _video.Play();
        }

    }
}
